package com.webapp.dao;

import org.springframework.stereotype.Repository;

import com.webapp.helper.BaseDao;
import com.webapp.helper.QueryParam;
import com.webapp.model.OrderInfo;

@Repository
public class OrderInfoDao extends BaseDao<OrderInfo>{

	public OrderInfo findByOrderNo(String orderNo) {
		QueryParam param = QueryParam.getInstance();
		param.addParam("orderNo", orderNo);
		return findByCriteriaForUnique(param);
	}

	public OrderInfo findByOutrNo(String outNo) {
		QueryParam param = QueryParam.getInstance();
		param.addParam("outNo", outNo);
		return findByCriteriaForUnique(param);
	}

    public OrderInfo findByOrderNo2(String payId) {
		QueryParam param = QueryParam.getInstance();
		param.addParam("orderNo2", payId);
		return findByCriteriaForUnique(param);
    }
}
